<?php
/* @var $this ExhibitionController */
/* @var $model Exhibition */

$this->breadcrumbs=array(
  'Exhibitions'=>array('index'),
  'Manage',
);
?>

<section class="panel">
    <header class="panel-heading">
        <i class="icon-group"></i> 展会信息
        <div class="pull-right ">
            <?php echo CHtml::link('<i class=\'icon-plus\'></i> 添加', array('create'), array('class' => 'btn btn-info'));?>        </div>
        <div class="clearfix"></div>
    </header>
</section>

<!--page start-->
<div class="adv-table">
<?php $this->widget('ext.EcloudWidget.EcloudWidget', array(
  'id'=>'exhibition-grid',
    'dataProvider' => $model->search(),
//    'filter' => $model,
    'itemsCssClass' => 'display table table-bordered',
    'enableSorting' => false,
    'template' => "{items}{summary}{pager}",
    'summaryText' => '每页显示50条,共{count}条',
    'emptyText' => '没有数据',
    'enableHistory' => true,
    'pager' => array(
        'class' => 'CLinkPager',
        'header' => '',
        'nextPageLabel' => '下一页',
        'prevPageLabel' => '上一页',
        'firstPageLabel' => '首页',
        'lastPageLabel' => '尾页',
    ),
  'columns'=>array(
		'id',
		'activity',
		'company',
		// 'tel',
    array(
        'name' => 'tel',
        'type' => 'raw',
        'value' => '"<a title=".$data->website.">".$data->tel."</a>"',
      ),
		// 'website',
		'place',
    array(
        'name' => 'event',
        'type' => 'raw',
        'value' => 'date("Y-m-d H:i",strtotime($data->event))',
      ),
		// 'event',
		// 'userid',
		'username',
		
    array(
      'class'=>'CButtonColumn',
      'header' => '操作', //指明头信息
      'template'=>"{view} {update} {delete} {copy}", 
      'deleteConfirmation'=>"js:'是否要删除?'",  //修改删除提示语句
      'buttons' =>array(
        'copy' => array(
            'label'=>'复制',
            'imageUrl'=>Yii::app()->request->baseUrl.'/img/icon/view.png',
            'url'=>'Yii::app()->createUrl("exhibition/create", array("id"=>$data->id))',
        ),
      ),
    ),
  ),
)); ?>


</div>
<!--page end-->
